// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
// See the LICENCE file in the repository root for full licence text.

.navbar-mobile {
  background-color: @osu-colour-h2;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: var(--z-index--nav-bar-mobile);
  color: #fff;
  display: flex;
  align-items: center;
  height: @navbar-height;
  padding: 0 10px;

  &__brand {
    padding: 0 10px;
    min-width: 0;
    font-size: @font-size--title-small;
  }

  &__header-section {
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1;

    &--buttons {
      flex: none;
    }
  }

  &__logo {
    flex: none;
    display: block;
    background-image: var(--nav-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: (@navbar-mobile--content-height + 10px);
    height: $width;
    margin: -5px;
  }

  &__toggle {
    .reset-input();
    flex: none;
    width: @navbar-mobile--content-height;
    height: @navbar-mobile--content-height;
    padding: 0;
    margin: 0;

    border-width: 2px;
    color: @osu-colour-c1;

    display: block;

    &:hover {
      color: @osu-colour-l1;
    }

    &.js-click-menu--active {
      transform: rotateX(0.5turn);
    }
  }

  &__toggle-icon {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
